package servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.service.impl.Infoservice;


public class AddwuliuInfo extends HttpServlet {

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		int orderid =Integer.parseInt(request.getParameter("orderid"));
		String info=request.getParameter("info");
		System.out.println(orderid+"  "+info);
		Infoservice infoservice=new Infoservice();
		infoservice.AddwuliuInfo(orderid, info);
		HttpSession session=request.getSession();
		session.setAttribute("addinfoflag", "true");
		response.sendRedirect("guanliyuan.jsp");
	}


	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doGet(request, response);
	}

}
